import org.joda.time.DateTime;
import org.junit.Test;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.Calendar;
import java.util.Date;

@SpringBootTest
public class Text {
    @Test
    public void text(){
        String time = "2021-09-28";
        Date date = new DateTime(time).toDate();
        System.out.println(date);
        Calendar cal = Calendar.getInstance();
        cal.setTime(date);
        cal.add(Calendar.HOUR_OF_DAY, +8);
        System.out.println(cal.getTime());



    }

}
